package top.deepdesigner.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 搜索历史表
 * </p>
 *
 * @author zhaojian
 * @since 2021-05-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class DtsSearchHistory implements Serializable {

  private static final long serialVersionUID = 1L;

  @TableId(value = "id", type = IdType.AUTO)
  private Integer id;

  /**
   * 用户表的用户ID
   */
  private Integer userId;

  /**
   * 搜索关键字
   */
  private String keyword;

  /**
   * 搜索来源，如pc、wx、app
   */
  @TableField("searchFrom")
  private String searchFrom;

  /**
   * 创建时间
   */
  private Date addTime;

  /**
   * 更新时间
   */
  private Date updateTime;

  /**
   * 逻辑删除
   */
  private Boolean deleted;


}
